
import { createStore } from 'vuex'
import userState from './state/userState'
import authState from './state/authState'
import enterpriseState from './state/enterpriseState'
import jobState from './state/jobState'
import eState from './state/eState'
import previewResumeState from './state/previewResumeState'
import uState from './state/uState'
import hrState from './state/hrState'
import adminState from './state/adminState'
export default  createStore({
  state:{
    searchType:"",
    searchWd:"",
    loading:false,
    isGet:false,
    showSearch:false,
  },

  mutations:{
    upSearch(state:any,searchData){
      state.searchType=searchData.searchType
      state.searchWd=searchData.searchWd
    }
  },
 
  modules: {
    userState,
    authState,
    enterpriseState,
    jobState,
    eState,
    previewResumeState,
    uState,
    hrState,
    adminState,
  }
})
